package com.anolesoft.yr.mbus.pre.mapper;

import com.anolesoft.yr.mbus.pre.dto.PreOrderProdSaveDTO;
import com.anolesoft.yr.mbus.pre.sql.PreOrderProdSQL;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface PreOrderProdMapper {

    //新增报价单产品
    @Insert(PreOrderProdSQL.SAVE_PRE_ORDER_PROD)
    int savePreOrderProd(PreOrderProdSaveDTO preOrderProdSaveDTO);

    //删除报价单产品
    @Update(PreOrderProdSQL.DELETE_PRE_ORDER_PROD)
    int deletePreOrderProd(String preOrderUid);

}
